package com.pks.autoInsurance.helper;

import com.pks.autoInsurance.dao.LoginDAO;
import com.pks.autoInsurance.dao.LoginDAOImpl;
import com.pks.autoInsurance.dto.RegistrationDto;

/**
 * Provide support for authentication
 * 
 * @author Pankaj Soni
 * 
 */
public class LoginHelper {
	/**
	 * Perform users login
	 * 
	 * @param registrationDtoReq
	 * @return UserLevel for more info {@link UserLevels}
	 */
	public int authenticateUser(RegistrationDto registrationDtoReq) {
		System.out.println(getClass() + "::::authenticateUser::::begin");
		LoginDAO loginDAO = new LoginDAOImpl();
		return loginDAO.authenticateUser(registrationDtoReq);

	}

}
